import request from '@/utils/request'

// 创建个股报告期现金
export function createXjBase(data) {
  return request({
    url: '/invest/xj-base/create',
    method: 'post',
    data: data
  })
}

// 更新个股报告期现金
export function updateXjBase(data) {
  return request({
    url: '/invest/xj-base/update',
    method: 'put',
    data: data
  })
}

// 删除个股报告期现金
export function deleteXjBase(id) {
  return request({
    url: '/invest/xj-base/delete?id=' + id,
    method: 'delete'
  })
}

// 获得个股报告期现金
export function getXjBase(id) {
  return request({
    url: '/invest/xj-base/get?id=' + id,
    method: 'get'
  })
}

// 获得个股报告期现金分页
export function getXjBasePage(params) {
  return request({
    url: '/invest/xj-base/page',
    method: 'get',
    params
  })
}
// 导出个股报告期现金 Excel
export function exportXjBaseExcel(params) {
  return request({
    url: '/invest/xj-base/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}